<?php

class Core_Form_Admin_Settings_Mailtemplate_Edit extends Form
{

    protected function _init()
    {

        $this -> setName('form_settings_mailtemplate_edit') -> setDesc('@self') -> setTitle('@self');

        $this -> addElement('@title', 'from_email', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@title', 'from_name', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@title', 'reply_email', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@title', 'reply_name', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@radio', 'mail_format', array(
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                'text' => 'text/plain',
                'html' => 'text/html',
            ),
            'value' => 'html',
        ));
        
        $this -> addElement('@radio', 'use_cron', array(
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                'on' => 'yes',
                'off' => 'no',
            ),
            'value' => 'off',
        ));

        $this -> addElement('@title', 'mail_subject', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@textarea', 'mail_body', array(
            'label' => '@self',
            'desc' => '@self',
        ));

        $this -> addElement('@group', 'buttons');

        $this -> getElement('buttons') -> addElement('@submit', '_submit') -> addElement('@cancel', '_cancel');
    }

}
